package stu.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Component
public interface SeatsMapper {
    @Update("update seats set state=2 where id=#{value}")
    Integer updateStateSelected(Integer id);
    @Update("update seats set state=1 where movie_id=#{movieId} and hall_id=#{hallId} and session_id=#{sessionId}")
    Integer updateStateAll(@Param("movieId") Integer movieId,@Param("hallId") Integer hallId,@Param("sessionId") Integer sessionId);
}
